package com.hzdesk.media.matvector.koreabatch.client.my_paperless.fragment.fragment_modle;

import android.content.Context;

import com.hzdesk.media.matvector.koreabatch.client.my_paperless.fragment.fragment_contract.IPersonalCenterContract;
import com.hzdesk.media.matvector.koreabatch.client.my_paperless.utils.SharedPreferencesUtils;

/**
 * Created by Administrator on 2018/8/16.
 * 杭州席媒科技有限公司  Developers  刘传华  10
 * 佛祖镇楼 bug辟易
 */

public class PersonalCenterModle implements IPersonalCenterContract.IPersonalCenterModle {
    @Override
    public String getToken(Context context) {
        return (String) SharedPreferencesUtils.getInstance(context).getDate("token","String");
    }

    @Override
    public void saveIslogin(Context context) {
        SharedPreferencesUtils.getInstance(context).putDate("desk_media_is_login",false);
    }
}
